package com.ygs.secs.model;

import java.io.Serializable;

/**
 * 成绩表
 */
public class Achievemen implements Serializable {
    //成绩ID
    private Integer achieveid;

    //科目
    private String subject;

    //评分
    private String score;

    //学期
    private String semester;

    //所属学生
    private Student student;

    private static final long serialVersionUID = 1L;

    public Integer getAchieveid() {
        return achieveid;
    }

    public void setAchieveid(Integer achieveid) {
        this.achieveid = achieveid;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getSemester() {
        return semester;
    }

    public void setSemester(String semester) {
        this.semester = semester;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", achieveid=").append(achieveid);
        sb.append(", subject=").append(subject);
        sb.append(", score=").append(score);
        sb.append(", semester=").append(semester);
        sb.append(", stuid=").append(student.getStuid());
        sb.append("]");
        return sb.toString();
    }
}